package com.blb.zycommunity.controller;

import com.blb.zycommunity.entity.ResponseResult;
import com.blb.zycommunity.entity.ZyOwnerRoomRecord;
import com.blb.zycommunity.service.IZyOwnerRoomRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * 房屋绑定记录表  前端控制器
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
@RestController
public class ZyOwnerRoomRecordController {

    @Autowired
    private IZyOwnerRoomRecordService ownerRoomRecordService;

    @PostMapping("/room-record")
    public ResponseResult roomRecord(@RequestBody ZyOwnerRoomRecord ownerRoomRecord){
        ownerRoomRecordService.save(ownerRoomRecord);
        return ResponseResult.ok("ok");
    }

}
